package net.towee.client.event.core;

import net.towee.model.account.AccountGroup;

import com.google.gwt.event.shared.GwtEvent;

public class UserEnteredToGroupEvent extends GwtEvent<UserEnteredToGroupHandler> {
	public static Type<UserEnteredToGroupHandler> TYPE = new Type<UserEnteredToGroupHandler>();
	private final AccountGroup acGroup;
	
	public UserEnteredToGroupEvent(AccountGroup result) {
		this.acGroup = result;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<UserEnteredToGroupHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(UserEnteredToGroupHandler handler) {
		handler.onUserEnteredToGroup(acGroup);
	}

}
